import {
  IEditorContainerController,
  IEditorProvider,
} from '@ibiz-template/runtime';
import { IEditor } from '@ibiz/model-core';
import { CheckinTimePickerController } from './checkin-time-picker.controller';

export class CheckinTimePickerProvider implements IEditorProvider {
  formEditor: string = 'IBizCheckinTimePicker';

  gridEditor: string = 'IBizCheckinTimePicker';

  async createController(
    editorModel: IEditor,
    parentController: IEditorContainerController,
  ): Promise<CheckinTimePickerController> {
    const c = new CheckinTimePickerController(editorModel, parentController);
    await c.init();
    return c;
  }
}
